package org.example.platform.design.beiwanglu;


import lombok.Data;

@Data
public class GameRole {
    private String sml;
    private String gjl;
    private String fyl;


    /**
     * 展示
     */
    public void show(){
    System.out.println("生命力："+sml);
    System.out.println("攻击力："+gjl);
    System.out.println("防御力："+fyl);
}

    /**
     * 获得初始状态
     */
    public void getShow() {
        this.sml= "100";
        this.gjl=  "100";
        this.fyl=  "100";
    }

    /**
     * 战斗
     */
    public void fight() {
        this.sml= "0";
        this.gjl=  "0";
        this.fyl=  "0";
    }


}
